package com.ruoyi.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.support.Convert;
import com.ruoyi.user.domain.LocationSet;
import com.ruoyi.user.mapper.LocationSetMapper;

/**
 * 电子围栏 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-05
 */
@Service
public class LocationSetServiceImpl implements ILocationSetService 
{
	@Autowired
	private LocationSetMapper locationSetMapper;

	/**
     * 查询电子围栏信息
     * 
     * @param id 电子围栏ID
     * @return 电子围栏信息
     */
    @Override
	public LocationSet selectLocationSetById(Integer id)
	{
	    return locationSetMapper.selectLocationSetById(id);
	}
	
	/**
     * 查询电子围栏列表
     * 
     * @param locationSet 电子围栏信息
     * @return 电子围栏集合
     */
	@Override
	public List<LocationSet> selectLocationSetList(LocationSet locationSet)
	{
	    return locationSetMapper.selectLocationSetList(locationSet);
	}
	
    /**
     * 新增电子围栏
     * 
     * @param locationSet 电子围栏信息
     * @return 结果
     */
	@Override
	public int insertLocationSet(LocationSet locationSet)
	{
	    return locationSetMapper.insertLocationSet(locationSet);
	}
	
	/**
     * 修改电子围栏
     * 
     * @param locationSet 电子围栏信息
     * @return 结果
     */
	@Override
	public int updateLocationSet(LocationSet locationSet)
	{
	    return locationSetMapper.updateLocationSet(locationSet);
	}

	/**
     * 删除电子围栏对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteLocationSetByIds(String ids)
	{
		return locationSetMapper.deleteLocationSetByIds(Convert.toStrArray(ids));
	}
	
}
